<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>思云课堂-个人课程列表--添加课程</title>
    <script src="/lay-excel/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/lay-excel/layui/src/css/layui.css">
    <script src="/lay-excel/layui/src/layui.js"></script>
    <link rel="stylesheet" href="/teacher/css/TeaAddCourse.css">
    <link rel="shortcut icon" href="/img/pro-logo.png">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <form id="formId">
            <div class="inpdiv">
                <!-- 选中的分类ID -->
                <input id="classId" type="hidden" name="classId">
                <p class="divp"><span class="divsp">*</span>课程分类：</p>
                <input type="text" class="layui-input imp1" name="className" id="className" lay-verify="required">
                <img src="/img/icon3.gif" id="classimg"/>
            </div>
            <div class="inpdiv">
                <p class="divp"><span class="divsp">*</span>课程名称：</p>
                <input type="text" class="layui-input imp1" name="courseName" id="courseName" lay-verify="required" lay-reqtext="名称是必填项">
            </div>
            <div class="inpdiv inpdiv2">
                <p class="divp"><span class="divsp">*</span>课程介绍：</p>
                <textarea class="layui-textarea" name="courseIntro" lay-verify="required" lay-reqtext="介绍是必填项" id="textsId"></textarea>
            </div>
            <div class="inpdiv">
                <p class="divp"><span class="divsp">*</span>课程售价：</p>
                <input type="text" class="layui-input imp1" name="courseNprice" id="courseNprice" lay-verify="required"  lay-reqtext="售价是必填项">
                <span class="inpdivsp">元</span>
            </div>
            <div class="inpdiv">
                <p class="divp">课程关键词：</p>
                <input type="text" class="layui-input imp1" name="coursePrimary" id="coursePrimary">
            </div>
            <!-- 上传的图片名称 -->
            <input id="url" type="hidden" name="url">
            <!-- 上传的视频名称 -->
            <input id="courseUrl" type="hidden" name="courseUrl">
        </form>
            <div class="inpdiv">
                <p class="divp">上传视频封面图：</p>
                <div>
                    <p>
                        <button id="getimg" class="btn">上传图片</button>
                        <span class="divsp2">注：</span>
                        只能上传一张图片
                    </p>
                </div>
            </div>
            <div class="inpdiv inpdiv2">
                <p class="divp">预览图：</p>
                <div id="imgdivId">
                    <img class="layui-upload-list" id="imgdiv" />
                </div>
            </div>
            <div class="inpdiv">
                <p class="divp">上传视频：</p>
                <div><button id="getcourseVideo" class="btn">上传视频</button></div>
            </div>
            <div class="inpdiv inpdiv3">
                <p class="divp">预览：</p>
                <div id="videdivId" class="vidediv"></div>
            </div>
        <div id="btndiv">
            <button class="btn2" id="subBtn">完成并提交</button>
        </div>
    </div>
</div>

<script src="/teacher/js/TeaAddCourse.js"></script>
</body>
</html>